function openMyFile () { 
if (document.layers) { 
var exePath = new String('/full/path/to/test.sh'); 


netscape.security.PrivilegeManager?.enablePrivilege('UniversalExecAccess?'); 

java.lang.Runtime.getRuntime().exec(exePath); 

} 